import storage from "./storage";

export function setToken(token) {
  storage.setItem("token", token);
}

export function getToken() {
  return storage.getItem("token");
}

export function isLogin() {
  return Boolean(getToken());
}

export function clearToken() {
  storage.removeItem("token");
}
